class CreateUnits < ActiveRecord::Migration
  def self.up
    create_table :units do |t|
      t.column :name,                :string, :limit => 50, :null => false
      t.column :dimension_id,        :int,                  :null => false
      t.column :convert_to_standard, :float
    end
  end

  def self.down
    drop_table :units
  end
end
